package com.cash.channel.api.exception;

/**
 * @blame taihao
 */
public class CashChannelException extends Exception {

    private String errMessage;

    private String code;

    public String getErrMessage() {
        return errMessage;
    }

    public void setErrMessage(String errMessage) {
        this.errMessage = errMessage;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public CashChannelException(String errMessage, String code) {
        super(errMessage);
        this.errMessage = errMessage;
        this.code = code;
    }

    public CashChannelException(String errMessage) {
        super(errMessage);
        this.errMessage = errMessage;
    }
}
